import request from '@/utils/request'

// 查询供应商账户流水列表
export function listTransaction(query) {
  return request({
    url: '/wms/transaction/list',
    method: 'get',
    params: query
  })
}

// 查询供应商账户流水详细
export function getTransaction(id) {
  return request({
    url: '/wms/transaction/' + id,
    method: 'get'
  })
}

// 新增供应商账户流水
export function addTransaction(data) {
  return request({
    url: '/wms/transaction',
    method: 'post',
    data: data
  })
}

// 修改供应商账户流水
export function updateTransaction(data) {
  return request({
    url: '/wms/transaction',
    method: 'put',
    data: data
  })
}

// 删除供应商账户流水
export function delTransaction(id) {
  return request({
    url: '/wms/transaction/' + id,
    method: 'delete'
  })
}
//根据供应商账号流水的交易编号查询单条数据
export function selectSupplierTransactionByCodeID(code) {
  return request({
    url: '/wms/transaction/select/' + code,
    method: 'get'
  })


}
